//
//  InputViewController.h
//  Demo
//
//

#import <UIKit/UIKit.h>
#import "MyUIViewController.h"
#import "Reachability.h"
#import "AsyncUdpSocket.h"

#define WELCOME_MSG  0
#define ECHO_MSG     1
#define WARNING_MSG  2

#define READ_TIMEOUT 15.0
#define READ_TIMEOUT_EXTENSION 10.0

@class AsyncSocket;
@interface InputViewController : MyUIViewController<UITableViewDelegate, UITableViewDataSource>{
    UITableView *TableView1, *TableView2, *TableView3;
    UIBarButtonItem *rightItem;
    UIButton *btn1, *btn2;
    UIButton *shareBtn;
    
    Reachability *wifiReachability;
    BOOL isConnect;
    
    NetworkStatus netStatus;
    
    AsyncUdpSocket *udpSocket;
    UIAlertView *m_sheet;
    BOOL isStopUdpSend;
    int m_port;
    NSMutableDictionary *phoneDic;
    BOOL isSend;
    BOOL isDataImport;//数据导入
    
    AsyncSocket *listenSocket;
    NSMutableArray *connectedSockets;
    BOOL isRunning;
}
@property(nonatomic, strong)AsyncUdpSocket *udpSocket;
@property (strong, nonatomic) Reachability *wifiReachability;
@property(nonatomic, strong)NSMutableDictionary *phoneDic;
@end
